import request from '@/utils/request'

// 1、查询下一级分类集合
export const GetCategoriesByPid = pid => {
  return request({
    url: `/admin/product/category/listByPid/${pid}`,
    method: 'GET',
  })
}
// 2、导出分类excel文件
export const ExportCategories = () => {
  return request({
    url: `/admin/product/category/export`,
    method: 'POST',
    //
    responseType: 'blob',
  })
}
